package com.gzz.orchid.common.boot.mybatis.annotation;

import com.gzz.orchid.common.boot.mybatis.auditor.InsertHandler;
import com.gzz.orchid.common.boot.mybatis.auditor.UpdateHandler;

import java.lang.annotation.*;

/**
 * 数据库表注解
 *
 * @author higmd
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
@Documented
public @interface Table {
    String schema() default "";
    Class<? extends InsertHandler> insertListener();
    Class<? extends UpdateHandler> updateListener();
}
